import styled from 'styled-components'
import logoPic from '../../statics/logo.png'
export const HeaderWrapper = styled.div`
    z-index: 1;
    height : 56px;
    // background: pink;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
`
// export const Logo = styled.a.attrs({
//     href: '/'
// })`
export const Logo = styled.div`
    height : 56px;
    display: block;
    width: 100px;
    top: 0;
    left: 300px;
    position: absolute;
    background: url(${logoPic});
    background-size:contain;
    boder-bottom: 1px solid #f0f0f0;
`

export const Nav = styled.div`
   height: 100%;
   width: 960px;
//    background: pink;
    padding-right:70px;
    box-sizing: border-box;
   margin:0 auto;
`
export const NavItem = styled.div`
line-height: 56px;
font-size: 17px;
padding: 0 15px;
color: #333;
&.left {
    float: left;
}
&.right {
    float: right;
    color: #969696;
}
&.active {
    color: #ea6f5a;
}
`
export const SearchInfo = styled.div`
    position: absolute;
    left: 20px;
    top: 56px;
    width: 250px;
    padding: 0 20px;
    background: white;
    // height: 100px;
    box-shadow: 0 0 8px rgba(0,0,0,.2)
`
export const SearchInfoTitle = styled.div`
margin-top: 20px;
margin-bottom: 15px;
line-height: 20px;
font-size: 14px;
color: #969696;
`
export const SearchInfoSwitch = styled.span`
    float: right;
    font-size: 13px;
    cursor:pointer;
    .spin{
        display: block;
        float: left;
        font-size: 12px;
        margin-right: 2px;
        transition: all .3s ease-in;
        // transform: rotate(0deg);
        transform-origin: center center;
    }

`
export const SearchInfoItem = styled.a`
font-size: 12px;
padding: 0 5px;
line-height: 20px;
border: 1px solid #ea6f5a;
color: #787878;
border-radius: 3px;
float: left;
display:block;
margin-right: 10px;
margin-bottom: 10px;
`
export const SearchInfoList = styled.div`
overflow: hidden;
`
export const SearchWrapper = styled.div`
    position: relative;
    float: left;
    // background: pink;
   
    .zoom {
        position:absolute;
        bottom:5px;
        right:5px;
        width:30px;
        line-height:30px;
        text-align:center;
        border-radius:15px;
        // background:red;
        &.focused {
            background: #777;
            color:white;
        }
    }
`
export const NavSearch = styled.input.attrs({
    placeholder: '搜索'
})`
width: 160px;
height: 38px;
border: none;
outline: none;
border-radius: 19px;
background: #eee;
margin-top:9px;
margin-left: 20px;
padding: 0 30px 0 20px;
box-sizing:border-box;
font-size: 14px;
color: #777;
&::placeholder{
    color: #999;
}
&.focused {
    width: 300px;

}
&.slide-enter {
    width:160px;
    transition: all .3s ease-out;
}
&.slide-enter-active {
    width: 300px;
}
&.slide-exit {
    transition: all .3s ease-out;
}
&.slide-exit-active {
    width:160px;
}
`
export const Addition = styled.div`
    position: absolute;
    right: 300px;
    top: 0;
    height: 56px;

`
export const Button = styled.div`
    float: right;
    line-height: 38px;
    margin-top: 9px;
    margin-right: 20px;
    padding: 0 20px;
    border-radius: 19px;
    border: 1px solid #ec6149;
    font-size: 14px;
    &.reg{
        color: #ec6149;
    }
    &.writting{
        color: white;
        background: #ec6149;
    }
`
